import service from '@/utils/request'

const ReferralApi = {
  addReferral: function(data) {
    return service.post('referral', data)
  },
  editReferral(data) {
    return service.put('referral', data)
  },
  updateReferralState(data) {
    return service.put('referral/updateState', data)
  },
  deleteReferral(data) {
    return service.delete('referral', {params: data })
  },
  listReferral(data) {
    return service.get('referrals', {params: data })
  },
  getReferralInfo(data) {
    return service.get('referral', {params: data })
  },


}

export default ReferralApi
